-- GENERATED SPELL FOR [Stormforged Lieutenant] --


function spell0_29240(pUnit, Event) --@Arc Weld,n/a--
pUnit:FullCastSpellOnTarget(59085,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29240', 10000, 1)
end

function spell1_29240(pUnit, Event) --@Renew Steel,n/a--
pUnit:FullCastSpellOnTarget(52774,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29240', 8000, 1)
end

function spell2_29240(pUnit, Event) --@Renew Steel,n/a--
pUnit:FullCastSpellOnTarget(59160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29240', 7500, 1)
end

function Sorts_29240(pUnit, Event)
local choix_sorts_29240 = math.random(0, 2)
if choix_sorts_29240 == 0 then
pUnit:RegisterEvent('spell0_29240', 1, 1)
end
if choix_sorts_29240 == 1 then
pUnit:RegisterEvent('spell1_29240', 1, 1)
end
if choix_sorts_29240 == 2 then
pUnit:RegisterEvent('spell2_29240', 1, 1)
end
end

function mob29240_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29240', math.random(1500, 3000), 1)
end

function mob29240_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29240_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29240_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29240, 1, 'mob29240_Action')
RegisterUnitEvent(29240, 2, 'mob29240_Leave')
RegisterUnitEvent(29240, 3, 'mob29240_Kill')
RegisterUnitEvent(29240, 4, 'mob29240_Die')
